from django.urls import path
from .views import test, menulist, UserViewSet, PermViewSet, RoleViewSet
from rest_framework.routers import SimpleRouter

router = SimpleRouter()
router.register('mgr', UserViewSet)  # /user/mgr /user/mgr/1/

router.register('perms', PermViewSet)  # /users/perms /users/perms/1/
router.register('roles', RoleViewSet)  # /users/roles /users/roles/1/
# users/ get list\ post create
# users/pk update\destory\retrieve
# users/whoami/  get-> whoami action

urlpatterns = [
                  path('menulist/', menulist),
              ] + router.urls
